package com.dock.classin.utils;

import java.util.concurrent.*;

/**
 * @Auther:
 * @Description:
 */
public class ExceutorUtil {
    private static ExecutorService executorService = new ThreadPoolExecutor(2, 10,
            1, TimeUnit.MINUTES, new ArrayBlockingQueue<>(5, true),
            Executors.defaultThreadFactory(), new ThreadPoolExecutor.AbortPolicy());

    public static ExecutorService getExcutor() {
        return executorService;
    }

}
